Chapter 1 Introduction

Chapter 1 Introduction

What Is an Operating System?

program act as the intermediary between

  • user program/applications
  • computer hardware

Goals

  • exe. user program
  • let app. do not have to deal with hardware directly
  • ensure efficient resource sharing

Computer System Structure

4 part(from bottom to up)

  • Hardware
    • CPU, memory, I/O
  • operation system
    • Controls and coordinates use of hardware among various applications and users
  • system, application program
    • Word processors, compilers, web browsers, database systems, video games
  • users
    • People, machines, other computers

image

  • alt text

Operating System Definition

The one program running at all time on the computer

  • kernal

Everything else

  • system program
  • application program

2 points of view of OS

  • resource allocator
    • Manages all resources
    • Applications do not have to manage resources directly – OS hides HW interface
    • Decides between conflicting requests for efficient and fair resource use
  • control program
    • Controls execution of programs to prevent errors and improper use of the computer
  • other
    • monitor the other programs
    • allows the other programs to share resources in a controlled manner
      • CPU, memory, IO devices…

Computer Startup

Bootstrap program is loaded at power-up or reboot (load OS)

  • Typically stored in ROM or EEPROM, generally known as firmware
  • Jobs
    • Initializes all aspects of system
    • Loads operating system kernel and starts OS execution
  • called a boot loader

Who loads the boot loader?

  • In PC, BIOS loads the (in-disk) boot loader
  • In many other platforms, boot loader is placed at a predefined memory address (in ROM or EEPROM)
    • Hardware jumps to the boot loader directly

Computer-System Organization

Computer-system operation

  • One or more CPUs, device controllers connect through common bus providing access to shared memory
  • Concurrent execution of CPUs and devices competing for
    bus cycles
  • alt text

Computer-System Operation

  • I/O devices and the CPU can execute concurrently.
  • Each device controller is in charge of a particular device type.
  • Each device controller has a local buffer.
  • Writing data to device
    • (Device driver running on the) CPU moves data from main memory to local buffers
    • Device controller writes the data from the local buffer to the device
    • Device controller informs CPU that it has finished its operation by generating an interrupt
  • One of the jobs of an operating system is to manage interrupts.

Common Functions of Interrupts

interrupt

  • alt text
  • alt text

software trigger

  • alt text

Interrupt Handling

alt text

Saving/Restoring CPU State – An Example

  • alt text

Interrupt-drive I/O Cycle

  • alt text
  • timeline
    • alt text

Two I/O Methods

alt text

Direct Memory Access (DMA)

alt text

Storage Structure

alt text
alt text

Caching

alt text

Performance of Various Levels of Storage

  • alt text

Migration of Data A from Disk to Register

  • alt text

Computer-System Architecture

alt text

  • alt text
  • alt text

Symmetric Multiprocessing

  • alt text

Multicore Systems

alt text

Graceful Degradation

  • alt text

Non-Uniform Memory Access (NUMA)

alt text

  • alt text
  • alt text

Problem

  • alt text

Clustered Systems

alt text

General Structure of a Clustered System

  • alt text

Type

  • alt text
  • alt text

Multiprogramming & Timesharing

alt text

Memory Layout for a Multiprogrammed System

  • alt text

Timesharing

  • alt text
  • alt text

Operating-System Operations

alt text

Transition from User to Kernel Mode

  • alt text
  • alt text

Timers

  • alt text

Process Management

alt text

  • alt text

Process Management Activities

  • alt text

Memory Management

alt text

Storage Management

alt text

  • alt text
  • alt text

File system management

  • alt text

Mass storage management

  • alt text
  • alt text

I/O Subsystem

alt text

Protection and Security

alt text

Users

  • alt text

set uid in linux

  • alt text

Virtualization

alt text

example

  • alt text

emulation

  • alt text
  • alt text

VMM

  • alt text
  • alt text

Basic Kernel Data Structures

alt text

list

  • alt text

stack and queue

  • alt text

tree

  • alt text

hashing and bitmap

  • alt text

Computing Environments

Open-Source Operating Systems


Chapter 1 Introduction
https://z-hwa.github.io/webHome/[object Object]/Operation Systems/Chapter-1-Introduction/
作者
crown tako
發布於
2024年11月3日
許可協議